" ==== 快捷键 配置文件 ====
"
" Author: Asura/Lover_HZ
" Data: 2020/10/06
" Version: 1.0
"
" =========================

" 设置 Leader 键
let mapleader=" "


" 在窗口之间移动，使用方向键
nmap <LEFT> <C-w>h 
nmap <DOWN> <C-w>j 
nmap <UP> <C-w>k
nmap <RIGHT> <C-w>l 

nmap <LEADER>n :bn<CR>
nmap <LEADER>p :bp<CR>

" 使 init.vim 加载
nnoremap <LEADER>s :source %<CR>

" Ctrl s 保存
nnoremap <C-s> :w<CR>

" bufferline 移动
nmap <Leader>1 <Plug>lightline#bufferline#go(1)
nmap <Leader>2 <Plug>lightline#bufferline#go(2)
nmap <Leader>3 <Plug>lightline#bufferline#go(3)
nmap <Leader>4 <Plug>lightline#bufferline#go(4)
nmap <Leader>5 <Plug>lightline#bufferline#go(5)
nmap <Leader>6 <Plug>lightline#bufferline#go(6)
nmap <Leader>7 <Plug>lightline#bufferline#go(7)
nmap <Leader>8 <Plug>lightline#bufferline#go(8)
nmap <Leader>9 <Plug>lightline#bufferline#go(9)
nmap <Leader>0 <Plug>lightline#bufferline#go(10)


